<%@ page language="java" import="java.util.*,entity.*,Dao.*,Dao.Impl.*,factory.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<HTML>
<HEAD>
<TITLE>员工
</TITLE>
<META http-equiv=Content-Type content="text/html;charset=utf-8" >
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=-1000>

<LINK href="/OrderMeal/css/admin.css" type="text/css" rel="stylesheet">
<link href="/OrderMeal/css/layout.css" type="text/css" rel="stylesheet">


<script language="javascript">
function check(form){
    if (form.room_no.value==""){
		alert("请输入包间编号");
		return false;
	}
	if (form.room_name.value==""){
		alert("请输入包间名称");
		return false;
	}
	if (form.room_size.value==""){
		alert("请输入包间大小");
		return false;
	}
	if (form.waiter_no.value==""){
		alert("请输入服务员工编号");
		return false;
	}		
}
</script>
  </head>
  
   <body>
<div id="container">
<div id="header"><jsp:include page="header.jsp"></jsp:include></div>
<div id="mainContent">
<div id="sidebar"><jsp:include page="waitersf.jsp"></jsp:include></div>
<div id="content">

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR height=28>
    <TD background=/OrderMeal/Images/title_bg1.jpg>当前位置: 包间开设</TD></TR>
  <TR>
    <TD bgColor=#b1ceef height=1></TD></TR>
  <TR height=20>
    <TD background=/OrderMeal/Images/shadow_bg.jpg></TD></TR></TABLE>
  
  <% 
  		String no = request.getParameter("room_no");
  		int rno = 0;
  		rno = Integer.parseInt(no);
  		RoomsDao rd = DaoFactory.getRoomsDao();
  		Rooms r = new Rooms();
  		r = rd.get(rno);		
		%>
    <center>
    
    <h1>包间开设</h1>
    <form  action="servlet/RoomFound.do" method = "post"   name = "foundForm" onsubmit="return check(foundForm)">
    	<table>
    	  <tr><td>包间编号：</td>
    	      <td><input type = "text" name = "room_no" id = "room_no" value = "<%= r.getRoom_no()%>"/></td></tr>
    	  <tr><td>包间名称：</td>
    	      <td><input type = "text" name = "room_name" id = "room_name" value = "<%=r.getRoom_name()%>"/></td></tr>
    	  <tr><td>包间大小：</td>
    	      <td><input type = "text" name = "room_size" id = "room_size" value = "<%=r.getRoom_size()%>"/></td></tr>
    	   <tr><td>容纳桌子总数：</td>
    	      <td><input type = "text" name = "table_num" id = "table_num" value = "<%=r.getTable_num()%>"/></td></tr>
    	  <tr><td>服务员工编号：</td>
    	      <td><input type = "text" name = "waiter_no" id = "waiter_no" value = "<%=r.getWaiter_no()%>"/></td></tr>
    	</table>   
    <input type = "submit" name = "submit" id = "submit" value = "开设" />
    
    </form>
    
    </center>
    
    
       </div>
</div>

<div id="footer" align="center">版权所有    中北大学10060641  郭倩</div>

</div> 
  </body>
</html>
